package sunflower.domain.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import sunflower.domain.User;

import java.util.List;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-29 16:05
 **/
@Repository
public interface UserMapper {

    /**
     * @param users 落库数据
     * @return 结果
     */
    Boolean insertAll(@Param("users") List<User> users);

    @Select("select * from t_user")
    List<User> selectAll();
}
